<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>数据打印</title>
    <script type="text/javascript" src="/static/jquery-easyui-1.3.3/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/bootstrap3/css/bootstrap-theme.css"></link>
    <script type="text/javascript" src="/static/bootstrap3/js/bootstrap.min.js"></script>
    <style type="text/css">
        body {
            background: white;
            margin: 0px;
            padding: 0px;
            font-size: 13px;
            text-align: center;
        }
        .pb {
            font-size: 13px;
            border-collapse: collapse;
        }
        .pb th {
            font-weight: bold;
            text-align: center;
            border: 1px solid #333333;
            padding: 2px;
        }

        .pb td {
            border: 1px solid #333333;
            padding: 2px;
        }

        table{
            margin: auto;
        }

        args{
            float: left
        }
    </style>
</head>
<body>
<div class="container">
    <!--打印-->
    <button class="info-btn" id="printBtn">打印</button>

<script type="text/javascript">

    var tableString = localStorage.getItem("tableString");
    document.write("<div style='text-align:center;'>"+tableString+"</div>");

    $("#printBtn").click(function(){
        window.print();
    })

</script>


</div>
</body>
</html>